<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('活动名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[active_id]" class="form-control between_time" {if  $Think.session.rule_id eq 5 }disabled="disabled"{/if} >
                {foreach $active as $k=>$val}
                    {if $k == $row['active_id']}
                    <option value="{$k}" selected>{$val}</option>
                    {else/}
                    <option value="{$k}" >{$val}</option>
                    {/if}
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('预约人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" {if  $Think.session.rule_id eq 5 }readonly{/if}  type="text" value="{$row.name|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('预约人数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  class="form-control" name="row[views]" type="text" value="{$row.views|htmlentities}" {if  $Think.session.rule_id eq 5 }readonly{/if} >
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('电话')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}" {if  $Think.session.rule_id eq 5 }readonly{/if} >
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('日期')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" name="row[day]" type="date" value="{$row.day}"  {if  $Think.session.rule_id eq 5 }readonly{/if} >
        </div>
    </div>
    {if  $Think.session.rule_id eq 1 }
     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
        <div class="col-xs-12 col-sm-8">
                  {:build_radios('row[status]', ['1'=>__('正常'),'0'=>__('取消'),"2"=>__('完成')], $row['status']);}
        </div>
    </div>
    {/if}
    {if  $Think.session.rule_id neq 5 }
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">
                <select class="province form-control" name="province" data-url="ajax/area" >
                    <option value="{$row['province']}" selected=""></option>
                </select>
                <select class="city form-control" name="city" data-url="ajax/area">
                    <option value="{$row['city']}" selected=""></option>
                </select>
                <select class="area form-control" name="country" data-url="ajax/area">
                    <option value="{$row['country']}" selected=""></option>
                </select>
            </div>

        </div>
    </div>
    {/if}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('实际人数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-actual_views"      class="form-control" name="row[active_views]" type="number" value="{$row.active_views|htmlentities}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
